/*
 */
package com.ericsson.excelbeanimporter.impl;

import com.ericsson.excelbeanimporter.ExcelBean;
import com.ericsson.excelbeanimporter.ExcelError;
import com.ericsson.excelbeanimporter.ImportResult;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author eluibon
 */
public class SimpleImportResult<T extends ExcelBean> implements ImportResult {

    private List<T> beans;


    public SimpleImportResult() {
        beans = new ArrayList<T>();
    }

    public List<T> getBeans() {
        return beans;
    }

    public void setBeans(List<T> beans) {
        this.beans = beans;
    }

    public void clear() {
        beans.clear();
    }
    
    public void addBean(T bean) {
        beans.add(bean);
    }
}
